var path = require('path');
var webpack = require('webpack');
module.exports = {
    entry: [
        'webpack-dev-server/client?http://localhost:8080', // WebpackDevServer host and port
        'webpack/hot/only-dev-server', // "only" prevents reload on syntax errors
        './src/js/main' // Your appʼs entry point
    ],
    output: {
        path: __dirname,
        filename: "./build/js/main.js"
    },
    module: {
        loaders: [
            { test: /\.jsx?$/,exclude: /(node_modules|bower_components)/, loader: 'babel'
            },
            { test: /\.less$/, loader: "style!less" },
            { test: /\.css$/, loader: "style!css" }
        ]
    },
    plugins: [
        new webpack.HotModuleReplacementPlugin() // Make hot loading work
    ]
};
